<template>
	<view v-if="item.state==0" class="box" @click="goDetaill(item.id)">
		<view class="address" >
			<view class="car">
				{{item.orderTitle}}
			</view>
			<view class="car">
				{{item.carCode}}
			</view>

		</view>
		<view class="bottom">
			<view class="time">
				{{item.createDate}}
			</view>
			<view class="price">
				{{item.exception}}元
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props:{
			item:{
				type: Object,
				default: {}
			}
		},
		methods: {
			goDetaill(id){
				uni.navigateTo({
					url:'/pages/index/publishDetail/publishDetail?id='+id
				})
			}
		}
	}
</script>

<style scoped>
	.price{
		font-size: 32rpx;
		color: #F29100;
		margin-left: auto;
	}
	.time{
		font-size: 24rpx;
		color: #909399;
		
	}
	.car{
		font-weight: bold;
		font-size: 32rpx;
	}
	.bottom{
		display: flex;
		margin-top:40rpx;
		align-items: center;
	}
	.address{
		
		display: flex;
		justify-content: space-between;
		align-items: center;
		
	}
.box{
	padding: 30rpx;
	width: 100%;
	height: 180rpx;
	border-radius: 10rpx;
	border: 1rpx solid #E4E7ED;
	margin-top: 20rpx;
}
</style>
